﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LX.Core.Auth
{
    /// <summary>
    /// 安全主体
    /// </summary>
    public interface IPrincipal
    {
        /// <summary>
        /// 获取标识
        /// </summary>
        /// <returns></returns>
        String GetId();

        /// <summary>
        /// 获取父级
        /// </summary>
        /// <returns></returns>
        List<IPrincipal> GetParents();
    }
}
